package com.pg.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * <p>
 * 订单类 Mapper 接口
 * </p>
 *
 * @author likl
 * @since 2020-07-06
 */
@Repository
public interface OrderMapper {

    /**
     * 统计订单
     *
     * @param supplierCode              供应商编码
     * @param subclassCode              种类编码
     * @param dataSourceCreateTimeBegin 起始时间
     * @param dataSourceCreateTimeEnd   结束时间
     * @return 条数
     */
    int selectDdCountByMap(@Param("supplierCode") String supplierCode, @Param("subclassCode") String subclassCode, @Param("startTime") @DateTimeFormat Date dataSourceCreateTimeBegin, @Param("endTime") @DateTimeFormat Date dataSourceCreateTimeEnd);
}
